# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class ImageItem(scrapy.Item):
    # 分别代表MongoDB存储的Collection名称和MySQL存储的表名称
    collection = table = 'images'
    id = scrapy.Field()
    url = scrapy.Field()
    title = scrapy.Field()
    thumb = scrapy.Field()


class PicItem(scrapy.Item):
    title = scrapy.Field()
    url = scrapy.Field()
